package com.study.ApplicationEvent2;

import org.springframework.context.ApplicationEvent;

import lombok.Data;

@Data
public class UserRegisterEvent extends ApplicationEvent{

	private static final long serialVersionUID = 2468519749860364018L;

	//注册用户对象
	private UserBean user;

	public UserRegisterEvent(Object source){
		super(source);
	}
	/**
     * 重写构造函数
     * @param source 发生事件的对象
     * @param user 注册用户对象
     */
	public UserRegisterEvent(Object source, UserBean user){
		super(source);
		this.user = user;
	}

}
